from pymysql import connect
con = connect(host="127.0.0.1",port=3306,user="root",password="zdn0203..",db="sten")
cursor1 = con.cursor()
sql = "select * from admin"
cursor1.execute(sql)
login_information = cursor1.fetchall()

def panduan_login(name, password):
	for item in login_information:
		print(item)
		if item[1] == name and item[2] == password:
			return "true"

if __name__ == '__main__':
	panduan_login()
